home *** CD-ROM | disk | FTP | other *** search
-
-
- SELF-REPLICATION
- by
- Roger S. Macomber
-
-
- COMMODORE MICROCOMPUTERS MAGAZINE
- July/August, 1986
- p. 62
-
-
- THE EVOLUTION OF THE GAME OF "LIFE"...
-
-
- How do cancer cells replicate and
-
- spread? How will an African epidemic
-
- run its course? Questions like these
-
- confront medical researchers every
-
- day. The answers require an
-
- understanding of the natural laws that
-
- govern how organisms reproduce.
-
-
- Scientists have found computer
-
- simulations to be powerful tools for
-
- studying problems of replication and
-
- reproduction. One of the first and
-
- most famous simulations was performed
-
- by Edward Fredkin of MIT. His
-
- computer-generated colony
-
- demonstrated that a surprising amount
-
- of complexity could arise from a set
-
- of a few simple rules governing the
-
- colony.
-
-
- "SELF-REPLICATION"....
-
-
- Fredkin's algorithm has generated
-
- many "Life" game programs from home
-
- computer enthusiasts. This version of
-
- "Life", SELF-REPLICATION, is by Roger
-
- Macomber, a Professor of Chemistry at
-
- the University of Cincinnati.
-
-
- When you run Professor Macomber's
-
- version of "Life" you will see that
-
- Fredkin's rule governing the growth
-
- of a colony is based on the pattern
-
- taken by individual "cells". Each
-
- time you press a key, you create a
-
- new generation in the colony.
-
- Whether or not a cell replicates and
-
- fills an adjacent empty grid block is
-
- determined by the number of filled
-
- grid blocks surrounding the empty
-
- block.
-
-
- If the empty grid block was
-
- surrounded by an odd number (1 or 3)
-
- of filled grid blocks, it will be
-
- filled. If the empty block was
-
- surrounded by an even number (0,2, or
-
- 4) of filled blocks, it will remain
-
- empty.
-
-
- BASIC VS. MACHINE LANGUAGE...
-
-
- SELF-REPLICATION demonstrates more
-
- than Fredkin's algorithm, however. The
-
- program has two versions:
-
- SELF REPLI.BAS which is written in
-
- BASIC, and SELF REPLI.ML, which is
-
- written in machine language. As you
-
- will see, the machine language
-
- version of SELF-REPLICATION is over a
-
- hundred times faster than the BASIC
-
- version. The machine language version
-
- will run from the main menu. To run
-
- the slow Basic version, exit Loadstar
-
- and type:
-
- LOAD"SELF REPLI.BAS",8 <CR> and
-
- RUN <CR>
-
- DISK FILES USED:
-
- SELF REPLI.ML SELF REPLI.BAS
-
- ------------< end of text >-----------
-